package com.xuecheng.api.media;

import com.xuecheng.api.media.model.aliyun.VodUploadRequest;
import com.xuecheng.api.media.model.aliyun.VodUploadToken;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;


/**
 * 媒资管理服务Api
 */
@Api(value = "阿里云vod服务管理",tags = "阿里云vod服务管理")
public interface AliyunVoApi {


    @ApiOperation(value = "创建上传凭证，供前端使用")
    @ApiImplicitParam(name = "voUploadRequest" , value = "封装前端传来的请求参数",required = true,paramType = "dody",dataType = "VodUploadRequest")
    VodUploadToken createUploadToken(VodUploadRequest vodUploadRequest);


    @ApiOperation(value = "刷新上传凭证，阿里云默认上传凭证有效50分钟")
    @ApiImplicitParam(name = "videoId",value = "视频id，阿里云默认自动生产且唯一",required = true,paramType = "path",dataType = "String")
    VodUploadToken refreshUploadToken(String videoId);
}
